var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.execCommand("autoexec");
            cm.execCommand("Name[autoexec]");
            cm.execCommand("npc_9062208");
            cm.execCommand("Name[npc_9062208]");
            cm.askMenu("\r\n#e[荣耀特攻队普通任务]激战海洋#n\r\n\r\n\r\n#L0##b#e参加激战海洋#n#k#l\r\n\r\n#L1##b#e查看任务信息#n#k#l\r\n\r\n", 4, 9062208)
        } else {
            cm.dispose();
            if (b == 0) {
                cm.gloryRagingSeaStart()
            } else {
                cm.openNpc("帮助_激战海洋")
            }
        }
    }
};